﻿#ifndef PAGE11_H
#define PAGE11_H

#include <QWidget>
#include <QTableWidget>
#include <QLabel>
#include <QPushButton>
#include <QSqlTableModel>
#include "FinanceDialog.h"  // 可能是自定义对话框，确保路径正确

class Page11 : public QWidget
{
    Q_OBJECT

public:
    explicit Page11(QWidget* parent = nullptr);

signals:
    void orderRequested();
    void productionRequested();
    void storeRequested();
    void financeRequested();
    void pageRequested10();
    void pageRequested11();
    void pageRequested12();
    void addEmployeeRequested();
    void pageRequested13();
        void pageRequested1();

public slots:
    void financeHide();
    void signuphide();
    void openFinanceDialog();
    void updateTableWidget();
      void onFrontButtonClicked();

private:
    void setupButtons();  // 私有函数，用于设置各个按钮

    QPixmap background;
    QLabel* backgroundLabel;
    QPushButton* orderButton;
    QPushButton* warehouseButton;
    QPushButton* productionButton;
    QPushButton* financeButton;
    QTableWidget* tableWidget;
    QPushButton* spendButton;
    QPushButton* creditingButton;
    QPushButton* extantButton;
    QPushButton* addEmployeeButton;
    QPushButton* helpButton;
    QPushButton* connectButton;
        QPushButton*frontButton;
};

#endif // PAGE11_H
